package com.cdxy.model.dto.base.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/2/20 13:45
 */
@Data
@ApiModel
public class BasePageReq implements Serializable {

    private static final long serialVersionUID = -7519391542951552428L;

    @ApiModelProperty(value = "当前页", required = true, example = "0")
    @NotNull(message = "页数不能为空")
    private Integer index = 0;

    @ApiModelProperty(value = "每页数量", required = true, example = "10")
    @NotNull(message = "每一页数不能为空")
    private Integer size = 10;
}
